package com.qy.service.impl;

import com.qy.dao.RewardOrderMapper;
import com.qy.model.Member;
import com.qy.model.RewardOrder;
import com.qy.service.RewardOrderService;
import com.qy.base.core.AbstractService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;


/**
 * Created by zaq on 2018/07/10.
 */
@Service
@Transactional
public class RewardOrderServiceImpl extends AbstractService<RewardOrder> implements RewardOrderService {
    @Resource
    private RewardOrderMapper qyRewardOrderMapper;

    @Override
    public List<RewardOrder> selectRewardOrderList(RewardOrder rewardOrder) {
        return qyRewardOrderMapper.selectRewardOrderList(rewardOrder);
    }

    @Override
    public void reply(RewardOrder rewardOrder) {
        qyRewardOrderMapper.reply(rewardOrder);
    }

    @Override
    public List<RewardOrder> selectRewardOrderListByState() {
        return qyRewardOrderMapper.selectRewardOrderListByState();
    }

    @Override
    public List<RewardOrder> selectMyReward(RewardOrder rewardOrder) {
        return qyRewardOrderMapper.selectMyReward(rewardOrder);
    }

    @Override
    public List<RewardOrder> selectRewardOrderListByUserId(Member member) {
        return qyRewardOrderMapper.selectRewardOrderListByUserId(member);
    }
}
